pkgname=mkbootimg
pkgver=14.1
pkgrel=1
pkgdesc="Android bootimg (zimage + initramfs) creation tool"
url="https://github.com/LineageOS/android_system_core/blob/cm-14.1/mkbootimg/mkbootimg"
arch="noarch"
license="APACHE2"
depends="python3"
subpackages=""
source="$pkgname::https://raw.githubusercontent.com/LineageOS/android_system_core/cm-14.1/mkbootimg/mkbootimg"
options="!check"

build() {
	sed -i -e 's./usr/bin/env python./usr/bin/env python3.' $srcdir/$pkgname
}

package() {
	install -Dm755 $srcdir/$pkgname $pkgdir/usr/bin/$pkgname
}

sha512sums="71ab9b6dfe19096bf6b33a8c46148dbe2b8b71fd693dcaf8cdba7a932e19bb7d29c3c245148a4b27119a6b883fc8f0ba04f5f815da0c40410b2b11d9fa1b7cd7  mkbootimg"
